package learn.euraka.feign.web.controller;

import learn.euraka.feign.web.client.ComputeClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author： xiami
 * @Date： Created in 2018-03-25 23:22
 * @Modified By：
 */
@RestController
public class ComputeConsumerController {

    @Resource
    ComputeClient computeClient;

    @GetMapping("/add")
    public String add() {
        Integer result = computeClient.add(1, 2);
        return result.toString();
    }

}
